
//
//  B_SweepMainView.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/8/19.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "B_SweepMainView.h"

@implementation B_SweepMainView

+ (instancetype) initB_SweepMainView {
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void) startAmination {
    [self.B_myQrCodeButton layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:20];
    [UIView animateWithDuration:1.2 delay:0 options:UIViewAnimationOptionRepeat animations:^{
        self.B_lineView.transform = CGAffineTransformMakeTranslation(0, 180);
    } completion:^(BOOL finished) {
        
    }];
}

- (IBAction)B_myQrCodeButtonAction:(id)sender {
    if (self.myQrCodeAction) {
        self.myQrCodeAction();
    }
}
@end
